import { createVNode, render } from 'vue';
import searchDialog from './rowToSelectDialog.vue';
let mountNode = null;
let instance = null;
export default (options, callback) => {
    if (!mountNode) {
        instance = createVNode(searchDialog, {});
        mountNode = document.createElement('div');
        render(instance, mountNode);
        document.body.appendChild(mountNode);
        instance.component.exposed.show(options, callback);
    }
    instance.props = Object.assign(instance.props, options);
    instance.props.selectType = options.selectType;
    instance.component.exposed.show(options, callback);
};
